package com.x25175.file.Vo;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;


import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author 徐佳辉
 * @date 2020/11/19 19:21
 */
@Data
@EqualsAndHashCode(of = {"idCard"})
public class StudentVo extends ExcelVerifyInfo implements Serializable {
    //姓名
    @Excel(name = "姓名")
    @NotNull(message = "姓名不能为空")
    private String name;
    //年龄
    @Excel(name = "年龄", type = 10)
    private Integer age;
    /**
     * 年级
     */
    @Excel(name = "年级")
    private String grade;
    /**
     * 院系
     */
    @Excel(name = "院系")
    private String department;
    /**
     * 专业
     */
    @Excel(name = "专业")
    private String major;
    /**
     * 性别
     */
    @Excel(name = "性别")
    private String sex;
    /**
     * 民族
     */
    @Excel(name = "民族")
    private String nation;
    /**
     * 身份证号
     */
    @Excel(name = "身份证号",width = 19)
    @NotNull(message = "身份证号不能为空")
    private String idCard;
    /**
     * 学制
     */
    @Excel(name = "学制")
    private String schooling;
    /**
     * 电话
     */
    @Excel(name = "手机",width = 12)
    @NotBlank(message = "手机号不能为空")
    private String phone;


}
